package org.jeecg.modules.jxc.sale.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: tb_sale_list
 * @Author: jeecg-boot
 * @Date:   2021-10-26
 * @Version: V1.0
 */
@ApiModel(value="tb_sale_list_goods对象", description="tb_sale_list_goods")
@Data
@TableName("tb_sale_list")
public class SaleList implements Serializable {
    private static final long serialVersionUID = 1L;

	/**销售单id，主键*/
	@ApiModelProperty(value = "销售单id，主键")
	private Integer id;
	/**销售单号*/
	@Excel(name = "销售单号", width = 15)
	@ApiModelProperty(value = "销售单号")
	private String saleNumber;
	/**实付金额*/
	@Excel(name = "实付金额", width = 15)
	@ApiModelProperty(value = "实付金额")
	private Double amountPaid;
	/**应付金额*/
	@Excel(name = "应付金额", width = 15)
	@ApiModelProperty(value = "应付金额")
	private Double amountPayable;
	/**销售单创建日期*/
	@Excel(name = "销售单创建日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "销售单创建日期")
	private Date saleDate;
	/**状态*/
	@Excel(name = "状态", width = 15)
	@ApiModelProperty(value = "状态")
	private Integer state;
	/**备注*/
	@Excel(name = "备注", width = 15)
	@ApiModelProperty(value = "备注")
	private String remarks;
	/**客户id，外键*/
	@Excel(name = "客户id，外键", width = 15)
	@ApiModelProperty(value = "客户id，外键")
	private Integer customerId;
	/**用户id，外键*/
	@Excel(name = "用户id，外键", width = 15)
	@ApiModelProperty(value = "用户id，外键")
	private Integer userId;

	/**非表字段*/
	@TableField(exist = false)
	private String customerName;

	@TableField(exist = false)
	@Excel(name = "销售单创建日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date saleDate_begin;

	@TableField(exist = false)
	@Excel(name = "销售单创建日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date saleDate_end;
}
